﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;

namespace Service.ZSJL.Com.IO
{
    public class FileUtils
    {

        /// <summary>
        /// 生成文件名称
        /// </summary>
        /// <param name="path"></param>
        /// <returns></returns>
        public static string GenRandomFileName(string path)
        {

            string ex = DateTime.Now.ToString("yyyyMMddhhmmss");
            string suf = Path.GetExtension(path);
            return ex + suf;

        }

    }
}
